From: Florian Müllner Date: Tue, 19 Dec 2023 17:57:37 +0000 (+0100) Subject: extensions-app: Use ListModel to track extensions X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~214 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7907b9754b39d581caec00ca5ded38d5a27ea22c;p=gnome-shell.git extensions-app: Use ListModel to track extensions Manually adding and removing rows to dynamic lists is rather old-fashioned, GTK 4 strongly encourages the use of models. Modernize the code by exposing extensions as ListModel, and bind it to the two lists with appropriate filters. Part-of: --- diff --git a/subprojects/extensions-app/data/ui/extensions-window.ui b/subprojects/extensions-app/data/ui/extensions-window.ui index 7047f130c..ba8470ce3 100644 --- a/subprojects/extensions-app/data/ui/extensions-window.ui +++ b/subprojects/extensions-app/data/ui/extensions-window.ui @@ -12,6 +12,43 @@ + + + + + + + + + + + true + substring + + + + + + sortModel + + + + + + + + + + sortModel + + + true + + + + + +